package com.markedquilt.vo;
/*
 * PackageName: com.markedquilt.vo
 * ClassName:   ArticleVo
 * Author:   zhang
 * Date:     Created in 2020/11/2
 * Description:
 * History:
 * <author>        <time>             <version>          <desc>
 * 作者姓名         修改时间            版本号              描述
 * zhang           2020/11/2      1.0
 */

import com.markedquilt.pojo.Article;

import java.util.ArrayList;
import java.util.List;

/**
 * Title:
 * Project: springbootTask
 *
 * @author ZhangKe
 * Created on 2020/11/2
 */
public class ArticleVo {

    /**
     * 当前页内数据
     */
    private List<Article> articles = new ArrayList<>();

    /**
     * 当前页码
     */
    private Integer currentPage;

    /**
     * 页内行数
     */
    private Integer rows;

    /**
     * 总页数
     */
    private Integer numPage;


    public List<Article> getArticles() {
        return articles;
    }

    public void setArticles(List<Article> articles) {
        this.articles = articles;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getNumPage() {
        return numPage;
    }

    public void setNumPage(Integer numPage) {
        this.numPage = numPage;
    }

    @Override
    public String toString() {
        return "ArticleVo{" +
                "articles=" + articles +
                ", currentPage=" + currentPage +
                ", rows=" + rows +
                ", numPage=" + numPage +
                '}';
    }
}
